import Vue from 'vue'
import i18n from './utils/i18n/i18n'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
import { getDicts } from "@/api/system/dict/data";
import PageHeader from "@/components/page-header/index.vue"
import PageBody from '@/components/page-body/index.vue'
import PageFooter from '@/components/page-footer/index.vue'
Vue.use(plugins)
Vue.config.productionTip = false
Vue.prototype.getDicts = getDicts
Vue.prototype.$store = store
Vue.component('page-header',PageHeader)
Vue.component('page-body',PageBody)
Vue.component('page-footer',PageFooter)

App.mpType = 'app'

const app = new Vue({
  i18n,
  ...App
})
app.$mount()
